package com.bjtu.literatureclient.service.user;

import com.bjtu.literatureclient.domain.base.BaseModel;
import com.bjtu.literatureclient.domain.user.User;
import com.bjtu.literatureclient.domain.user.UserAndTeam;

import java.util.List;

public interface IUserService {
    List<User> query(BaseModel baseModel);
    int update(User user);
    int insert(User user);
    int delete(BaseModel baseModel);
	User login(User realUser);
	User loginByPhone(User realUser);
	User loginByEmail(User realUser);
	String checkUserEmail(String userEmail);

	boolean checkUserNo(String userNo);
	int checkUserState(String userNo);
	int checkUserStateByPhone(String userNo);
	int checkUserStateByEmail(String userNo);
	String getNextUserNo(String teamNo);
	boolean setUserState(String userNo, String userState);
	List<UserAndTeam> getUsersByTeamNo(String teamNo);

	String loginRedirect(User user);

	String getNewUserNo(String teamNo);
}